package com.seawatebt.cloud.eurekaclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class InfoController {

    @Value("${server.port}")
    public String port;

    @GetMapping({"/hi","/hello"})
    public String hi(@RequestParam(value = "name",defaultValue = "seawaterBt")String name){
        return "name="+name+"\tport="+port;
    }
}
